Cevela about COBOL COBOL language - Home - Site Map - About Cevela - MX COBOL    <prev   next>
9.   Statements for modular and OO structure of project
For more see links to the main provider's on-line documentation.
For MX COBOL see Summary comment + FAQ and How to ..

Common structure

                                                                 60-1
program-id.
    Prog-1.
working-storage section.
1   Dat-2  data-spec*
    ..
procedure division.
    ..
    call  "Prog-4"  using  Dat-2  ...

program-id. Prog-4. linkage section. 1 Dat-5 data-spec* .. procedure division using Dat-5 ... . ..
MX limitations: - see How to in MX

call

                                                                 60-1
call  DatX-1  using
      LitX-1
   params-spec*
      / [reference]  Dat-2
      / content  [length of]  Dat-3
   ...
   [returning  Dat-4]
   [exception
      imperative-statements-5*]
   [not exception
      imperative-statements-6*]
end-of-statement*
   end-call
   .

MX limitations: - the phrases not exception, end-call are not implemented - see How to in MX

cancel

                                                                 60-1
cancel  DatX-1  ...
        LitX-1
    

entry

                                                                 MX-1
entry  DatX-1  [using  Dat-2  ...]

Limitations: this format is IBM OSVS extension in the others dialects except MX and MF is not implemented

exit

                                                                 60-1
exit
    

                                                                 02-2
exit  program
      method
      function
      perform
      paragraph
      section

MX limitations: this format is not implemented

goback

                                                                 02-1
goback

Remarks: there are some other phrases in the others dialects and COBOL-02

invoke

                                                                 02-1
invoke  Datx-1  DatX-2  using
                LitX-2
   params-spec*
      reference  Dat-3
      content
      value
   ...
   [returning  Dat-4]

MX limitations: this statement is not implemented

COBOL language in brief - © Vlastimil Cevela 2006

Date 2006-06-03 - Text Builder 0.65 - Time 20:31:48